package cn.com.taiji.pos.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author
 * @since 2021-03-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class CardConsumptionRule implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId("ID")
    private String id;

    /**
     * 顾客类型
     */
    @TableField("CUSTOMER_TYPE_ID")
    private String customerTypeId;

    /**
     * 业务类型
     */
    @TableField("BUSINESS_TYPE_ID")
    private String businessTypeId;

    /**
     * 对应餐次
     */
    @TableField("MEAL_TIME_ID")
    private String mealTimeId;

    /**
     * 账户类型
     */
    @TableField("ACCOUNT_TYPE_ID")
    private String accountTypeId;

    /**
     * 消费金额
     */
    @TableField("AMOUNT")
    private BigDecimal amount;

    /**
     * 消费次数
     */
    @TableField("TIMES")
    private Integer times;

    /**
     * 账户类型是否必选(0:否 1:是)
     */
    @TableField("REQUIRED")
    private String required;

    /**
     * 创建人
     */
    @TableField("CREATOR_ID")
    private String creatorId;

    /**
     * 创建人姓名
     */
    @TableField("CREATOR_NAME")
    private String creatorName;

    /**
     * 创建时间
     */
    @TableField("CREATE_TIME")
    private LocalDateTime createTime;


}
